/*
 * @Author: jiayu
 * @Date: 2022-08-04 16:03:03
 * @LastEditors: jiayu
 * @LastEditTime: 2022-08-15 11:41:29
 * @Description:
 */
import React from 'react';
import { useModel } from '@umijs/max';
import styles from './index.less';

interface ICardProps {
  TitleRnder: React.ReactNode;
  RightContentRender?: React.ReactNode;
}

const Card: React.FC<ICardProps> = (props) => {
  const { TitleRnder, RightContentRender, children } = props;
  return (
    <div className={styles.card}>
      <div className={styles.hd}>
        <div className={styles.title}>{TitleRnder}</div>
        {RightContentRender}
      </div>
      <div className={styles.container}>{children}</div>
    </div>
  );
};

export default Card;
